<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>测试CORS</title>
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#cors").click(function(){
                $.ajax({
                    url:"http://47.107.147.145:8080/talent/stat/554119711",
                    success:function(data){
                        alert(data);
                    }
                })
            });
        });
    </script>
</head>
<body>
<input type="button" id="cors" value="CORS跨域测试" />
</body>
</html>